home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{D1212DE2-1920-413F-833E-9DE3B4743ED2}#1.0#0"; "ciaXPProgress.ocx"
- Begin VB.Form Form1
- BackColor = &H00FFFFFF&
- Caption = "Form1"
- ClientHeight = 3045
- ClientLeft = 60
- ClientTop = 450
- ClientWidth = 7950
- LinkTopic = "Form1"
- ScaleHeight = 3045
- ScaleWidth = 7950
- StartUpPosition = 3 'Windows Default
- Begin ciaXPProgress.ProgressBar ProgressBar1
- Height = 195
- Left = 330
- TabIndex = 9
- Top = 2115
- Width = 4500
- _ExtentX = 7938
- _ExtentY = 344
- GradientFrom = 3724597
- GradientTo = 11333035
- HighLightOnFull = -1 'True
- HighLightColorFrom= 255
- LicValid = -1 'True
- End
- Begin ciaXPProgress.ProgressWait ProgressWait1
- Height = 195
- Left = 315
- TabIndex = 8
- Top = 465
- Width = 4500
- _ExtentX = 7938
- _ExtentY = 344
- GradientFrom = 3724597
- GradientTo = 11333035
- LicValid = -1 'True
- End
- Begin VB.ComboBox cboDir
- Height = 315
- Index = 1
- Left = 5385
- TabIndex = 6
- Text = "Combo1"
- Top = 2100
- Width = 2325
- End
- Begin VB.ComboBox cboDir
- Height = 315
- Index = 0
- Left = 5385
- TabIndex = 4
- Text = "Combo1"
- Top = 1050
- Width = 2325
- End
- Begin VB.Timer Timer1
- Interval = 200
- Left = 4650
- Top = 2580
- End
- Begin VB.CommandButton Command1
- Caption = "Start"
- Height = 495
- Left = 5385
- TabIndex = 1
- Top = 255
- Width = 1215
- End
- Begin VB.CommandButton Command2
- Caption = "Stop"
- Height = 495
- Left = 6645
- TabIndex = 0
- Top = 255
- Width = 1215
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "Direction"
- Height = 255
- Index = 1
- Left = 5385
- TabIndex = 7
- Top = 1875
- Width = 1215
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "Direction"
- Height = 255
- Index = 0
- Left = 5385
- TabIndex = 5
- Top = 825
- Width = 1215
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Label1"
- Height = 195
- Left = 300
- TabIndex = 3
- Top = 150
- Width = 480
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Label2"
- Height = 195
- Left = 300
- TabIndex = 2
- Top = 1845
- Width = 480
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cboDir_Click(Index As Integer)
- Select Case Index
- Case 0
- ProgressWait1.Direction = cboDir(0).ListIndex
- Case 1
- ProgressBar1.Direction = cboDir(1).ListIndex
- ProgressBar1.Value = 0
- Label2 = "Current Percent: " & ProgressBar1.Value
- Timer1.Enabled = True
- End Select
- End Sub
- Private Sub Command1_Click()
- Label1 = "Please Wait......"
- ProgressWait1.pStart
- End Sub
- Private Sub Command2_Click()
- Label1 = "Finished"
- ProgressWait1.pStop
- End Sub
- Private Sub Form_Load()
- Label1 = "": Label2 = ""
- cboDir(0).AddItem "0 - Left to Right"
- cboDir(0).AddItem "1 - Right to Left"
- cboDir(0).AddItem "2 - Both"
- cboDir(1).AddItem "0 - Left to Right"
- cboDir(1).AddItem "1 - Right to Left"
- cboDir(0).ListIndex = 0
- cboDir(1).ListIndex = 0
- End Sub
- Private Sub Timer1_Timer()
- If ProgressBar1.Value >= 100 Then
- Timer1.Enabled = False
- ProgressBar1.Value = ProgressBar1.Value + 10
- End If
- Label2 = "Current Percent: " & ProgressBar1.Value
- End Sub
-